package com.nineclock.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nineclock.system.pojo.SysCompanyUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Mapper
public interface SysCompanyUserMapper extends BaseMapper<SysCompanyUser> {

    /**
     * 根据传入企业id和职位获取user
     * @param companyId
     * @param position
     * @return
     */
    SysCompanyUser getCurrentPositionUser(@Param("companyId") Long companyId, @Param("position") String position);
}
